from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def guanzhu(self):
        loc=(By.ID,'com.kongfz.app:id/lav_2')
        ele=self.find_ele(loc)
        return ele
    def dianji(self):
        loc=(By.XPATH,'//android.widget.ImageView[@resource-id="com.kongfz.app:id/lottie_attention"]')
        ele=self.find_ele(loc)
        return ele
    def bianxie(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_write_dynamic"]')
        ele=self.find_ele(loc)
        return ele
    def xie(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def fabu(self):
        loc=(By.ID,'com.kongfz.app:id/tv_publish')
        ele=self.find_ele(loc)
        return ele
    def gz(self):
        loc=(By.XPATH,'(//android.widget.TextView[@text="关注"])[1]')
        ele=self.find_ele(loc)
        return ele